<?php
class admin_helpers_Messages extends Zend_View_Helper_Abstract
{
	public function messages()
	{
		$result = '';

		if (!empty($this->view->messages)) {
			$result .= '<ul class = "messages">';

			foreach($this->view->messages as $message) {
				$result .= '<li>' . $message . '</li>';
			}

			$result .= '</ul>';
		}

		return $result;
	}
}